package com.voe.common;

public enum StereoChannel {

	kStereoLeft(0), kStereoRight(1), kStereoBoth(2);
	
	public static StereoChannel fromValue(int value) {
		for (int i=0;i<StereoChannel.values().length;i++) {
			if(StereoChannel.values()[i].getValue() == value)
				return StereoChannel.values()[i];
		}
		return null;
	}

	/**
	 * Constructor.
	 */
	private StereoChannel(int value) {
		this.value = value;
	}

	/**
	 * Get the value.
	 * 
	 * @return the value
	 */
	public int getValue() {
		return value;
	}

	private final int value;
}
